package samples.d2.trames 
{
	import flash.geom.Point;
	import flash.geom.Rectangle;
	import samples.BaseSample;
	import shapes.shapes2D.distribution.Grid;
	import shapes.shapes2D.distribution.Hexagonal;
	import shapes.shapes2D.distribution.poissondisk.PoissonDisk;
	import shapes.shapes2D.distribution.RandomDistribution;
	import shapes.shapes2D.distribution.Triangular;
	import shapes.shapes2D.Dot;
	
	/**
	 * @author Nicolas Barradeau
	 * http://en.nicoptere.net
	 */
	public class RandomSample extends BaseSample
	{
		
		public function RandomSample( ) 
		{
			
			
			
			var points:Vector.<Point> = RandomDistribution.distribute( new Rectangle( 0,0,sw,sh ), 1000 );
			
			graphics.clear();
			graphics.lineStyle( 0, color );
			for each( var p:Point in points )
			{
				
				graphics.drawCircle( p.x, p.y, 1 );
				
			}
			
		}
		
	}

}